package example.sharding.controller;

import example.sharding.model.ShardingOrder;
import example.sharding.service.OrderService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @author King
 * @description
 * @Date 2020/3/22
 */
@RestController
public class OrderController {

    @Autowired
    OrderService orderService;

    @GetMapping("/order")
    public boolean addOrder(){
        return orderService.addOrder();
    }
}
